]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Stop prohibiting template strings in files with translations
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 7 Feb 2022 13:09:13 +0000 (14:09 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 12 Feb 2022 12:29:52 +0000 (12:29 +0000)
It has been nearly two years since the last regression reported in
https://savannah.gnu.org/bugs/?func=detailitem&item_id=50920 has been
fixed, and no further regressions were reported in the meantime.

It looks therefore safe enough to not restrict ourselves, and start
allowing templates for all non-translatable strings again.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>

.gitlab-ci.yml
.gitlab-ci/check-template-strings.sh [deleted file]

index 25d44827f3ad8e06ce082f3d34fb8174bad5da05..e0b6bcd0ea1fb36ed982437b6c8af35c83765417 100644 (file)
@@ -182,14 +182,6 @@ potfile_js_check:
   script:
     - js91 -m .gitlab-ci/check-potfiles.js
 
-no_template_check:
-  extends:
-    - .fdo.distribution-image@fedora
-    - .gnome-shell.fedora:35
-  stage: review
-  script:
-    - ./.gitlab-ci/check-template-strings.sh
-
 build:
   stage: build
   needs: ["check_commit_log"]
diff --git a/.gitlab-ci/check-template-strings.sh b/.gitlab-ci/check-template-strings.sh
deleted file mode 100755 (executable)
index efa8afc..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env bash
-
-# find files from POTFILES.in that use js template strings
-baddies=$(grep -l '${' $(grep ^js po/POTFILES.in))
-
-if [ ${#baddies} -eq 0 ]; then
-  exit 0
-fi
-
-cat >&2 <<EOT
-
-xgettext cannot handle template strings properly, so we ban their use
-in files with translatable strings.
-
-The following files are listed in po/POTFILES.in and use template strings:
-
-EOT
-for f in $baddies; do
-  echo "  $f" >&2
-done
-echo >&2
-
-exit 1